﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine; 

public class TSingleton<T>
    where T : class, new()
{
    static T m_Instance;
    public static T Instance
    {
        get
        {
            if (m_Instance == null)
            {
                m_Instance = new T();
            }
            return m_Instance;
        }
    }
}
